<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:t="http://java.sun.com/jsf/composite/components/toolbar"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<body>

	<h:form id="frmPrincipal">

		<t:toolbar managedbean="#{clienteForm}" widgetVar="toolBar" />


		<p:fieldset legend="Padrões de menssagens"
			styleClass="ui-widget-fieldSet">

			<div class="ui-widget-aling-left">
				<div>
					<h:outputLabel styleClass="ui-widget-label" value="Código" />
				</div>
				<div>
					<p:inputText size="10" disabled="true"
						value="#{clienteForm.cliente.id}" />
				</div>
			</div>

			<div class="ui-widget-aling-left">
				<div>
					<h:outputLabel styleClass="ui-widget-label" value="Nome" />
				</div>
				<div>
					<p:inputText size="10" disabled="#{clienteForm.campoBloqueado}"
						value="#{clienteForm.cliente.nome}" />
				</div>
			</div>

		</p:fieldset>

	</h:form>

	<p:dialog header="Enter FirstName" widgetVar="dlg" resizable="false"
		modal="true">
		<h:form id="modal">

			<p:dataTable var="cliente" value="#{clienteForm.clientes}"
				selection="#{clienteForm.cliente}" selectionMode="single"
				rowSelectListener="#{clienteForm.onRowSelect}" dblClickSelect="true"
				onselectComplete="dlg.hide()"
				update="frmPrincipal"
				emptyMessage="No cars found with given criteria">

				<p:column filterBy="#{cliente.id}" headerText="Código"
					filterMatchMode="contains">
					<h:outputText value="#{cliente.id}" />
				</p:column>

				<p:column filterBy="#{cliente.nome}" headerText="Nome">
					<h:outputText value="#{cliente.nome}" />
				</p:column>

			</p:dataTable>

		</h:form>
	</p:dialog>

</body>
</html>
